package org.dromara.merchants.domain;

import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * 关联对象 ta_association
 *
 * @author xiyin321
 * @date 2024-07-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("ta_association")
public class TaAssociation implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "association_id")
    private Long associationId;

    /**
     * 父ID
     */
    private Long parentId;

    /**
     * 名称
     */
    private String name;

    /**
     * 可选列表
     */
    @TableField(typeHandler = JacksonTypeHandler.class, value = "options")
    private List<String> options;

    /**
     * 可选数量
     */
    private Long quantity;

    /**
     * 已选列表
     */
    private String selected;

    /**
     * 类型
     */
    private String type;


}
